﻿using Microsoft.AspNetCore.SignalR;
using Warehouse.Api.Read.Dtos;
using Warehouse.Infrastructrue.Implenment;

namespace Warehouse.Api.Read.AGCation.Signal
{
    public class SignalRHub:Hub
    {
        DbContext db;
        public SignalRHub(DbContext db)
        {
            this.db = db;
        }
        public async Task PushHub(List<TransferDto> dto)
        {
            await Clients.All.SendAsync("transferDto", dto);
        }

    }
}
